package Threelayer.view;

import Threelayer.DAO.PersonDao;
import Threelayer.DAO.impl.PersonDaoImpl;
import Threelayer.Entity.Person;
import Threelayer.Utils.DateUtils;

import java.util.List;

/**
 * @author lishunlin110
 * @version 1.0
 * @description: 测试
 * @date 2021/8/23 12:47
 */
public class TestPerson {
    public static void main(String[] args) {
//      Person ps = new Person("ll","软件工程",10, DateUtils.strToUtil("2001-03-04"));
//
//        Person ps = new Person(1,"hsa","软件工程",10, DateUtils.strToUtil("2000-10-04"));
//        PersonDao personDao = new PersonDaoImpl();
//      int result = personDao.insert(ps);
//        int result = personDao.update(ps);
//        System.out.println(result);

//        PersonDao personDao = new PersonDaoImpl();
//        Person ps = personDao.query("hsa");
//        System.out.println(ps.toString());

        PersonDao personDao = new PersonDaoImpl();
        System.out.println(personDao.queryAll());
    }
}
